package com.dc.service;

import com.dc.po.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CommentService {

    List<Comment> listCommentByBlogId(Long blogId);;

    Comment save(Comment comment);

    void deleteByBlogId(Long blogId);

    void deleteComment(Long id);

    Page<Comment> listComment(Pageable pageable);

    List<Comment> listCommentTop(Integer size);
}
